package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试题管理对象 gzds_question_info
 *
 * @author ruoyi
 * @date 2021-04-20
 */
public class GzdsQuestionInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问题id */
    private Long questionId;

    /** 题库 */
    @Excel(name = "题库")
    private String bankname;

    /** 题型 */
    @Excel(name = "题型", readConverterExp = "0=单选,1=多选,2=判断")
    private String questions;

    /** 问题 */
    @Excel(name = "问题")
    private String question;

    /** A选项 */
    @Excel(name = "A选项")
    private String optiona;

    /** B选项 */
    @Excel(name = "B选项")
    private String optionb;

    /** C选项 */
    @Excel(name = "C选项")
    private String optionc;

    /** D选项 */
    @Excel(name = "D选项")
    private String optiond;

    /** 答案 */
    @Excel(name = "答案(多选时用/隔开)")
    private String answer;

    public void setQuestionId(Long questionId)
    {
        this.questionId = questionId;
    }

    public Long getQuestionId()
    {
        return questionId;
    }
    public void setBankname(String bankname)
    {
        this.bankname = bankname;
    }

    public String getBankname()
    {
        return bankname;
    }
    public void setQuestions(String questions)
    {
        this.questions = questions;
    }

    public String getQuestions()
    {
        return questions;
    }
    public void setQuestion(String question)
    {
        this.question = question;
    }

    public String getQuestion()
    {
        return question;
    }
    public void setOptiona(String optiona)
    {
        this.optiona = optiona;
    }

    public String getOptiona()
    {
        return optiona;
    }
    public void setOptionb(String optionb)
    {
        this.optionb = optionb;
    }

    public String getOptionb()
    {
        return optionb;
    }
    public void setOptionc(String optionc)
    {
        this.optionc = optionc;
    }

    public String getOptionc()
    {
        return optionc;
    }
    public void setOptiond(String optiond)
    {
        this.optiond = optiond;
    }

    public String getOptiond()
    {
        return optiond;
    }
    public void setAnswer(String answer)
    {
        this.answer = answer;
    }

    public String getAnswer()
    {
        return answer;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionId", getQuestionId())
            .append("bankname", getBankname())
            .append("questions", getQuestions())
            .append("question", getQuestion())
            .append("optiona", getOptiona())
            .append("optionb", getOptionb())
            .append("optionc", getOptionc())
            .append("optiond", getOptiond())
            .append("answer", getAnswer())
            .toString();
    }
}
